#ifndef COAPCONST_H
#define COAPCONST_H

//**** SETTINGS ****
//TODO - check draft for exact values (i think there's nothing like this, but just for sure)
#define RESPONSE_TIMEOUT 5
#define MAX_RETRANSMIT 3

//**** BASIC ****
#define COAP_VERSION 0x1

//**** TYPES ****
#define TYPE_CON 0x0
#define TYPE_NON 0x1
#define TYPE_ACK 0x2
#define TYPE_RES 0x3

//**** CODES ****
#define CODE_GET 0x1
#define CODE_POST 0x2
#define CODE_PUT 0x3
#define CODE_DELETE 0x4
//TODO - choose better synax
#define CODE_201 0x65
#define CODE_CREATED 0x65
//TODO - add rest of codes

//**** OPTIONS ****
#define OPT_URIPATH 0x9

#endif
